package com.mybatis.flex.controller;


import com.mybatis.flex.entity.Account;
import com.mybatis.flex.service.IACcountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/account")
public class AccountController {

    @Autowired
    private IACcountService iaCcountService;



    @GetMapping("/accountList")
    public List<Account> listUser() {

        return iaCcountService.list();
    }
}
